package com.goodsogood.union.auth.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 惠工银行卡
 * @author liuy
 *
 */
@Entity
@Table(name = "gs_user_huigong_bankcard", schema = "gs_user_info")
public class GsHuigongBankcardEntity  {

    private String cardId;// 银行卡ID
    private String userId;// 所属用户ID
    private String userIdCard;//所属用户身份证
    private String userName;
    private String bankCardNo;// 银行卡号
    private String bankAccountName;// 银行账户名持卡人
    private String bankType;// 所属开户行 10 中国银行....
    private String bankName;// 所属开户行名称
    private long bankLimit;// 银行额度
    private long interestLimit;// 贴息额度
    private String activate;// 是否激活 1 激活

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name = "CARD_ID", nullable = false, length = 32)
    public String getCardId() {
        return cardId == null ? "" : cardId;
    }
    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    @Basic
    @Column(name = "USER_ID", nullable = true, length = 32)
    public String getUserId() {
        return userId == null ? "" : userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Basic
    @Column(name = "BANK_CARD_NO", nullable = true, length = 32)
    public String getBankCardNo() {
        return bankCardNo == null ? "" : bankCardNo;
    }

    public void setBankCardNo(String bankCardNo) {
        this.bankCardNo = bankCardNo;
    }
    @Basic
    @Column(name = "BANK_ACCOUNT_NAME", nullable = true, length = 32)
    public String getBankAccountName() {
        return bankAccountName == null ? "" : bankAccountName;
    }

    public void setBankAccountName(String bankAccountName) {
        this.bankAccountName = bankAccountName;
    }
    @Basic
    @Column(name = "BANK_TYPE", nullable = true, length = 32)
    public String getBankType() {
        return bankType == null ? "" : bankType;
    }

    public void setBankType(String bankType) {
        this.bankType = bankType;
    }
    @Basic
    @Column(name = "BANK_NAME", nullable = true, length = 32)
    public String getBankName() {
        return bankName == null ? "" : bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }
    @Basic
    @Column(name = "BANK_LIMIT", nullable = true, length = 32)
    public long getBankLimit() {
        return bankLimit;
    }

    public void setBankLimit(long bankLimit) {
        this.bankLimit = bankLimit;
    }

    @Basic
    @Column(name = "INTEREST_LIMIT", nullable = true, length = 32)
    public long getInterestLimit() {
        return interestLimit;
    }

    public void setInterestLimit(long interestLimit) {
        this.interestLimit = interestLimit;
    }

    @Basic
    @Column(name = "IS_ACTIVATE", nullable = true, length = 32)
    public String getActivate() {
        return activate == null ? "" : activate;
    }

    public void setActivate(String activate) {
        this.activate = activate;
    }

    @Basic
    @Column(name = "USER_ID_CARD", nullable = true, length = 32)
    public String getUserIdCard() {
        return userIdCard == null ? "" : userIdCard;
    }

    public void setUserIdCard(String userIdCard) {
        this.userIdCard = userIdCard;
    }
    @Basic
    @Column(name = "USER_NAME", nullable = true, length = 32)
    public String getUserName() {
        return userName == null ? "" : userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

}
